home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Application Shellƒ / main.cp < prev    next >
Encoding:
Text File  |  1996-04-04  |  421 b   |  20 lines  |  [TEXT/KAHL]

  1. // this is the main body for the Yenta application.
  2. // all it does is create an object of the CPPYenta type
  3. // and tell it to Go.  YentaApp does all the rest
  4.  
  5. #include "CPPYenta.h"
  6.  
  7. extern    CPPApplication    *gApplication;
  8.  
  9. void main (void)
  10. {    
  11.     gApplication = new CPPYenta ();
  12.     
  13.     if (gApplication)
  14.       {    
  15.           gApplication->Initialize ();    
  16.           gApplication->Go ();
  17.           gApplication->ShutDown ();
  18.           delete gApplication;
  19.       }
  20. }